package edu.ustc.iproject.action.zhaopin;
import edu.ustc.iproject.bean.Company;
import edu.ustc.iproject.service.CompanyService;
import edu.ustc.iproject.service.impl.CompanyServiceImpl;

import java.util.List;
import com.opensymphony.xwork2.ActionSupport;

public class ComListAllAction extends ActionSupport {
	private List<Company> list_com ;

	public List<Company> getList_com() {
		return list_com;
	}

	public void setList_com(List<Company> listCom) {
		list_com = listCom;
	}
	
	public String execute() throws Exception{
		Company company = new Company();
		CompanyService companyService = new CompanyServiceImpl();
		list_com = companyService.listAllCompany();
		return SUCCESS;
	}
	

}
